﻿using Loki.Commands;

namespace Luna.UI
{
    public static class ApplicationCommands
    {
        private static CommandManager _Manager = new CommandManager();

        public static readonly ICommand DATA_SAVE_AS = _Manager.Create(Names.DATA_SAVE_AS);
        public static readonly ICommand DATA_OPEN = _Manager.Create(Names.DATA_OPEN);
        public static readonly ICommand DATA_NEW = _Manager.Create(Names.DATA_NEW);

        public static readonly ICommand OPEN = _Manager.Create(Names.OPEN);
        public static readonly ICommand SEARCH = _Manager.Create(Names.SEARCH);
        public static readonly ICommand NEW = _Manager.Create(Names.NEW);

        public static readonly ICommand GOOGLE_REFRESH = _Manager.Create(Names.GOOGLE_REFRESH);
        public static readonly ICommand ZOHO_REFRESH = _Manager.Create(Names.ZOHO_REFRESH);

        private static class Names
        {
            public const string DATA_SAVE_AS = "Data.SaveAs";
            public const string DATA_OPEN = "Data.Open";
            public const string DATA_NEW = "Data.New";

            public const string OPEN = "Application.Open";
            public const string SEARCH = "Application.Search";
            public const string NEW = "Application.New";

            public const string GOOGLE_REFRESH = "Application.Google.Refresh";
            public const string ZOHO_REFRESH = "Application.Zoho.Refresh";
        }
    }
}